package com.y.report.service.basic.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.y.report.entity.basic.YReportUser;
import com.y.report.mapper.basic.YReportUserMapper;
import com.y.report.service.basic.YReportUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户信息表 服务实现类
 * </p>
 *
 * @author y
 * @since 2021-09-25
 */
@Primary
@Service
public class YReportUserServiceImpl extends ServiceImpl<YReportUserMapper, YReportUser> implements YReportUserService {

    @Autowired
    private YReportUserMapper yReportUserMapper;

    @Override
    public int appendMultiple(List<YReportUser> obj) {
        return yReportUserMapper.appendMultiple(obj);
    }

    @Override
    public int modifyCondition(YReportUser newObj, YReportUser oldObj) {
        return yReportUserMapper.modifyCondition(newObj, oldObj);
    }

    @Override
    public List<YReportUser> queryCondition(YReportUser eqObj, YReportUser likeObj, IPage<YReportUser> page) {
        return yReportUserMapper.queryCondition(eqObj, likeObj, page);
    }
}
